package bsdemopb

type Response interface {
	GetCode() string
	GetMessage() string
}

func RequestOK(rsp Response) bool {
	return rsp.GetCode() == CodeOK
}

const (
	CodeOK = "bs.demo.ok"

	CodeDemoUnknown = "bs.demo.unknown" // 位置错误
)
